import { $t } from "@/plugins/i18n";
import { menuoverflow } from "@/router/enums";

export default {
  path: "/menuoverflow",
  redirect: "/menuoverflow/index",
  meta: {
    title: $t("menus.pureMenuOverflow"),
    rank: menuoverflow
  },
  children: [
    {
      path: "/menuoverflow/index",
      name: "MenuOverflow",
      component: () => import("@/views/menuoverflow/index.vue"),
      meta: {
        title: $t("menus.pureChildMenuOverflow"),
        showParent: true
      }
    },
    {
      path: "/menuoverflow/power",
      name: "powerList",
      component: () => import("@/views/configuration/power/index.vue"),
      meta: {
        title: '功能权限管理',
        keepAlive: true
      }
    },
    {
      path: "/menuoverflow/powerAdd",
      name: "powerAdd",
      component: () => import("@/views/configuration/powerAdd/index.vue"),
      meta: {
        title: '新增功能权限管理',
        keepAlive: true
      }
    },
    {
      path: "/menuoverflow/staffList",
      name: "staffList",
      component: () => import("@/views/staffManagement/staffList/index.vue"),
      meta: {
        title: '员工管理',
        keepAlive: true
      }
    },
    {
      path: "/menuoverflow/empowerList",
      name: "empowerList",
      component: () => import("@/views/empowerment/empowerList/index.vue"),
      meta: {
        title: '员工授权',
        keepAlive: true
      }
    }
  ]
} satisfies RouteConfigsTable;
